#!/bin/bash
SVN_DIR="/Users/hewesley/icyriver_at_google/scripts/"
SCRIPTS_DIR="/Users/hewesley/scripts"

cd $SCRIPTS_DIR
echo "current dir:" `pwd`

echo "copying files..."
echo "  cp -r $SCRIPTS_DIR/conf_file_svn.sh $SVN_DIR/mac_conf_file_svn.sh"
cp $SCRIPTS_DIR/conf_file_svn.sh $SVN_DIR/mac_conf_file_svn.sh

echo "  cp -r $SCRIPTS_DIR/script_file_svn.sh $SVN_DIR/mac_script_file_svn.sh"
cp $SCRIPTS_DIR/script_file_svn.sh $SVN_DIR/mac_script_file_svn.sh

cd $SVN_DIR
echo "svn dir:" `pwd`

echo "svn st" 
svn st .

echo "svn add"
svn st | grep '^?' | tr '^\?' ' ' | sed 's/[ ]*//' | sed 's/[ ]/\\ /g' | xargs svn add

echo "svn ci"
svn ci .

echo "OK"
